﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace OJS.Worker
{
    /// <summary>
    /// Đại diện cho thông tin submit
    /// </summary>
    [DataContract]
    public class SubmitInfo
    {
        /// <summary>
        /// User id
        /// </summary>
        [DataMember]
        public int UserId { get; set; }

        /// <summary>
        /// Problem code
        /// </summary>
        [DataMember]
        public string ProblemCode { get; set; }

        /// <summary>
        /// Source code
        /// </summary>
        [DataMember]
        public string SourceCode { get; set; }

        /// <summary>
        /// Language id
        /// </summary>
        [DataMember]
        public int Language { get; set; }

        /// <summary>
        /// Specified Time
        /// </summary>
        [DataMember]
        public double SpecifiedTime { get; set; }

        /// <summary>
        /// Specified Memory Size
        /// </summary>
        [DataMember]
        public double SpecifiedMemorySize { get; set; }

        /// <summary>
        /// Define is ACM problem or not
        /// </summary>
        [DataMember]
        public bool IsACM { get; set; }
    }
}
